﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SmApiLibrary.datatypes.Interface;

namespace SmApiLibrary.datatypes.Sina
{
    public class Geo : IGeo
    {
        public Geo()
        {
            _georss = new GeoRss();
        }

        private GeoRss _georss;
        public IGeoRss georss
        {
            get
            {
                return _georss;
            }
            set
            {
                _georss = new GeoRss() { text = value.text };
            }
        }

        #region IDataTypeBase 成员

        public override SmApiLibrary.libs.WeiBoType WeiboType
        {
            get
            {
                return SmApiLibrary.libs.WeiBoType.Sina;
            }
            set
            {

            }
        }
        #endregion
    }

    public class GeoRss : IGeoRss
    {
        public string text { get; set; }

        #region IDataTypeBase 成员

        public override SmApiLibrary.libs.WeiBoType WeiboType
        {
            get
            {
                return SmApiLibrary.libs.WeiBoType.Sina;
            }
            set
            {

            }
        }
        #endregion
    }
}
